package org.jeecg.modules.fw.service.impl;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.business.entity.BusRoomPayType;
import org.jeecg.modules.finance.mapper.SummaryMapper;
import org.jeecg.modules.fw.entity.FwRoomClean;
import org.jeecg.modules.fw.mapper.FwRoomCleanMapper;
import org.jeecg.modules.fw.service.IFwRoomCleanService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * @Description: fw_room_clean
 * @Author: jeecg-boot
 * @Date:   2023-04-17
 * @Version: V1.0
 */
@Service
public class FwRoomCleanServiceImpl extends ServiceImpl<FwRoomCleanMapper, FwRoomClean> implements IFwRoomCleanService {
    @Resource
    private FwRoomCleanMapper fwRoomCleanMapper;

    public List<HashMap<String, Object>> roomUseConsumableSummary(Integer type, String hotelId, DateTime startTime, DateTime endTime) {
        return fwRoomCleanMapper.roomUseConsumableSummary(type, hotelId, startTime, endTime);
    }

    public List<HashMap<String, Object>> roomCleanSummary(String hotelId, DateTime startTime, DateTime endTime) {
        return fwRoomCleanMapper.roomCleanSummary(hotelId, startTime, endTime);
    }

    @Override
    public List<FwRoomClean> needCleanRoom(String hotelId) {
        return fwRoomCleanMapper.needCleanRoom(hotelId);

    }
}
